package work2;

import java.util.Scanner;

public class Quetion3 {
	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);
		int sec;

		System.out.print("请输入秒数：");
		sec = input.nextInt();
		input.close();

		int h, m, s;
		h = sec / 3600;
		m = sec % 3600 / 60;
		s = sec % 60;

		System.out.printf("转换后为：%d小时%d分%d秒\n", h, m, s);

	}

}